package com.ruoyi.project.modules.toolBox.controller;

import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.project.modules.toolBox.domain.LicenseCreateReqDTO;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/toolbox/license")
public class LicenseController {
    private String prefix = "toolbox/license";

//    @RequiresPermissions("toolbox:license:view")
    @GetMapping()
    public String licenseIndexHtml(ModelMap modelMap) {
        return prefix + "/license";
    }

    @GetMapping("/add")
    public String licenseAddHtml(ModelMap modelMap) {
        return prefix + "/add";
    }

    @PostMapping("/add")
    public AjaxResult licenseAdd(@RequestBody  LicenseCreateReqDTO reqData) {
        return AjaxResult.success();
    }


}
